<template>
  <view>

	<van-tabbar v-model="active">
	  <van-tabbar-item to="/" name="index" icon="home-o">首页</van-tabbar-item>
	  <van-tabbar-item to="/local_index" name="local_index" icon="search">本地</van-tabbar-item>
	  <van-tabbar-item to="/settlement_index" name="settlement_index" icon="friends-o">一键入驻</van-tabbar-item>
	  <van-tabbar-item to="/news_index" name="news_index" icon="more-o">消息</van-tabbar-item>
	  <van-tabbar-item to="/my_index" name="my_index" icon="setting-o">我的</van-tabbar-item>
	</van-tabbar>

  </view>
</template>
<script>


export default {
  name: 'footer_active',
  data (){
	return{
		// 设置当前路由页面为tab选择状态
		active:this.$route.name
	}
  },
  mounted(){
	//   当前路由名称
	  console.log(this.$route.name);
  }

 }
</script>

<style>

</style>

